package liquidfs.data;

import java.util.*;

import com.thoughtworks.xstream.annotations.*;

import liquidfs.data.ex.*;
import liquidfs.data.ops.*;

@XStreamAlias("waiting-result")
public class WaitingResult<T> extends Result<T> {
   
   public WaitingResult(Operation<T> operation) {
      super(operation, null);
   }
   
   @Override
   public T getData () throws FileSystemException {
      throw new WaitingException("Result has not yet been received; the operation has been queued.");
   }

}
